def func():
    language='Java'
    print(f'局部变量:{locals()}')
msg='python'
print(f'全局变量:{globals()}')
func()